package com.mantbox.channelcall.service.impl;

import com.mantbox.channelcall.dao.ReportMapper;
import com.mantbox.channelcall.entity.Report;
import com.mantbox.channelcall.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportServiceImpl implements ReportService {

    @Autowired
    ReportMapper reportMapper;


    @Override
    public Report selectByIdfa(String idfa) {
        List<Report> reportList = reportMapper.selectByIdfa(idfa);
        if (reportList.size() > 0) return  reportList.get(0);
        return null;
    }
}
